﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace MyEmptyApplication
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            Debug.WriteLine("1、启动应用程序。");
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }

        protected void Application_BeginRequest()
        {
           Debug.WriteLine("2、开始请求。"); 
        }

        protected void Application_EndRequest()
        {
            Debug.WriteLine("4、结束请求。");
        }
        protected void Application_End()
        {
            Debug.WriteLine("5、停止应用程序。");
        }
    }
    
}
